// vite.config.js
import {
  defineConfig
} from "file:///D:/desk/%E6%AF%95%E8%AE%BE/bishe/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/desk/%E6%AF%95%E8%AE%BE/bishe/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import {
  createSvgIconsPlugin
} from "file:///D:/desk/%E6%AF%95%E8%AE%BE/bishe/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import postCssPxtorem from "file:///D:/desk/%E6%AF%95%E8%AE%BE/bishe/node_modules/postcss-pxtorem/index.js";
import autoprefixer from "file:///D:/desk/%E6%AF%95%E8%AE%BE/bishe/node_modules/autoprefixer/lib/autoprefixer.js";
import {
  plugin
} from "file:///D:/desk/%E6%AF%95%E8%AE%BE/bishe/node_modules/postcss/lib/postcss.mjs";
var __vite_injected_original_dirname = "D:\\desk\\\u6BD5\u8BBE\\bishe";
var vite_config_default = defineConfig({
  build: {
    outDir: "dist",
    // 输出目录
    emptyOutDir: true,
    // 构建前先清空输出目录
    base: "./",
    // 设置静态资源的公共路径
    rollupOptions: {
      input: {
        main: path.resolve(__vite_injected_original_dirname, "index.html")
        // 入口文件
      }
    }
  },
  plugins: [
    vue(),
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
      symbolId: "icons-[dir]-[name]"
    })
  ],
  postcss: {
    plugins: [
      // 这里可以选择不需要手动引入，因为 Vite 会自动读取 postcss.config.js
    ]
  },
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "src")
      // 使用 @ 代替 src
    }
  },
  server: {
    host: "http://8.134.78.60",
    // 替换为你的实际 IPv4 地址192.168.135.250
    port: 80
    // proxy: {
    //   // 将所有请求代理到本地的 8080 端口
    //   ['/api']: {
    //     target: 'http://8.134.78.60:8080',
    //     changeOrigin: true,
    //     rewrite: (path) => path.replace(/^\/api/, '/user')
    //   },
    // }
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: '@import "./src/styles/variable.scss";'
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxkZXNrXFxcXFx1NkJENVx1OEJCRVxcXFxiaXNoZVwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxcZGVza1xcXFxcdTZCRDVcdThCQkVcXFxcYmlzaGVcXFxcdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0Q6L2Rlc2svJUU2JUFGJTk1JUU4JUFFJUJFL2Jpc2hlL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHtcbiAgZGVmaW5lQ29uZmlnXG59IGZyb20gJ3ZpdGUnO1xuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUnO1xuaW1wb3J0IHBhdGggZnJvbSAncGF0aCc7XG5pbXBvcnQge1xuICBjcmVhdGVTdmdJY29uc1BsdWdpblxufSBmcm9tICd2aXRlLXBsdWdpbi1zdmctaWNvbnMnO1xuaW1wb3J0IHBvc3RDc3NQeHRvcmVtIGZyb20gJ3Bvc3Rjc3MtcHh0b3JlbSc7XG5pbXBvcnQgYXV0b3ByZWZpeGVyIGZyb20gJ2F1dG9wcmVmaXhlcic7XG5pbXBvcnQge1xuICBwbHVnaW5cbn0gZnJvbSAncG9zdGNzcyc7XG5cblxuXG5cblxuLy8gaHR0cHM6Ly92aXRlanMuZGV2L2NvbmZpZy9cbmV4cG9ydCBkZWZhdWx0IGRlZmluZUNvbmZpZyh7XG5cbiAgYnVpbGQ6IHtcbiAgICBvdXREaXI6ICdkaXN0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